@extends('common.admin_common')
@section('content')
    <!--面包屑导航 开始-->
    <div class="crumb_warp">
        <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
        <i class="fa fa-home"></i> <a href="{{url('admin/info')}}">首页</a> &raquo; <a href="javascript:;">修改导航</a>
    </div>
    <!--面包屑导航 结束-->

    <!--结果集标题与导航组件 开始-->
    @if(count($errors)>0)
        <div class="result_wrap">
            <div class="result_title">
                <div class="mark">
                    @if(is_object($errors))
                        @foreach($errors->all() as $error)
                            <p>{{$error}}</p>
                        @endforeach
                    @else
                        <p>{{$errors}}</p>
                    @endif
                </div>
            </div>
        </div>
        @endif
                <!--结果集标题与导航组件 结束-->

        <div class="result_wrap">
            <form action="{{url('admin/navs/'.$row->nav_id)}}" method="post">
                {{method_field('put')}}
                {!!csrf_field()!!}
                <table class="add_tab">
                    <tbody>

                    <tr>
                        <th><i class="require">*</i>导航名称：</th>
                        <td>
                            <input type="text" class="" name="nav_name" value="{{$row->nav_name}}">
                            <span><i class="fa fa-exclamation-circle yellow"></i>导航名称必须填写</span>
                        </td>
                    </tr>
                    <tr>
                        <th>导航别名：</th>
                        <td>
                            <input type="text" class="" name="nav_alias" value="{{$row->nav_alias}}">
                        </td>
                    </tr>
                    <tr>
                        <th>导航地址Url：</th>
                        <td>
                            <input type="text" class="lg" name="nav_url" value="{{$row->nav_url}}">
                        </td>
                    </tr>
                    <tr>
                        <th>排序：</th>
                        <td>
                            <input type="text" class="sm" name="nav_order" value="{{$row->nav_order}}">
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type="submit" value="提交">
                            <input type="button" class="back" onclick="history.go(-1)" value="返回">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
@endsection
